<include file="App/Admin/View/Public/left.html"/>
<div class="admin">

<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 添加友情链接</strong></div>
  <div class="padding border-bottom">  
  <a href="{:U('Link/insert')}"><button type="submit" class="button border-yellow"><span class="icon-plus-square-o"></span> 添加友情链接</button></a>
  </div><form method="post" action="{:U('Link/insert')}">
  <table class="table table-hover text-center">
    <tr>
      <th width="5%">标题</th>
      <th width="15%">链接地址</th>
	  <th width="15%">添加时间</th>
      <th width="15%">状态</th>
      <th width="20%">操作</th>
    </tr>
   <volist name="list" id="vo" key="$k">
    <tr>                  
      <td>{$vo.title}</td>
	  <td>{$vo.url}</td>
	 <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>  
    <td>
      <eq name="vo.status" value="2">
    隐藏
    <else/>
    显示
    </eq>
    </td>
      <td>
    
    <div class="button-group">  <a class="button border-blue" href="{:U('Link/insert',array('id'=>$vo['id']))}"><span class="icon-edit text-blue"></span> 修改</a> </div>
    <div class="button-group">  <a class="button border-red" href="{:U('Link/del',array('id'=>$vo['id']))}"><span class="icon-trash-o"></span> 删除</a></div>
    <div class="button-group">  <a class="button border-green" href="{:U('Link/open',array('id'=>$vo['id']))}"><span class="icon-edit text-green"></span>
      <eq name="vo.status" value="2">显示<else /> 隐藏</eq></a> </div>
      
  </td>
    </tr>
  
    </volist>
  </table>
  
</div>
<div class="pagelist">{$page} </div>
</form>